home *** CD-ROM | disk | FTP | other *** search
/ The Charlie Rose Science Series Anthology / The Charlie Rose Science Series Anthology (Pfizer, Inc.)(2008).iso / mac / Charlie Rose Science Series Anthology.app / Contents / Resources / movie.swf / scripts / __Packages / mx / controls / streamingmedia / ToEndButton.as < prev    next >
Text File  |  2008-02-01  |  1KB  |  33 lines

  1. class mx.controls.streamingmedia.ToEndButton extends MovieClip
  2. {
  3.    function ToEndButton()
  4.    {
  5.       super();
  6.       this.init();
  7.    }
  8.    function init()
  9.    {
  10.       this.attachMovie("SimpleButton","toEndSimpleButton",1,{falseUpSkin:"ToEnd-False-Up",falseOverSkin:"ToEnd-False-Over",falseDownSkin:"ToEnd-False-Down",falseDisabledSkin:"ToEnd-False-Disabled"});
  11.       this.toEndSimpleButton.addEventListener("click",this);
  12.       var _loc2_ = this._parent._parent;
  13.       _loc2_.evaluateToEnd();
  14.       this.tabEnabled = false;
  15.       this.tabChildren = true;
  16.    }
  17.    function get enabled()
  18.    {
  19.       return this.toEndSimpleButton.enabled;
  20.    }
  21.    function set enabled(is)
  22.    {
  23.       this.toEndSimpleButton.enabled = is;
  24.    }
  25.    function click(ev)
  26.    {
  27.       var _loc2_ = this._parent._parent;
  28.       mx.controls.streamingmedia.Tracer.trace("ToEndButton.click: playAtBeginning=false");
  29.       _loc2_.playAtBeginning = false;
  30.       _loc2_.broadcastEvent("playheadChange",100);
  31.    }
  32. }
  33.